package com.ruoyi.project.mahjong.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 商品对象 t_commodity
 *
 * @author ruoyi
 * @date 2023-07-16
 */
public class Commodity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 是否售卖状态 0售卖 ，1 不售卖 */
    @Excel(name = "是否售卖状态 0售卖 ，1 不售卖")
    private String status;

    /** 价格 */
    @Excel(name = "价格")
    private Double price;
//    兑换所需积分
    private String integral;
//    店铺id
    private String shopId;

    /** 商品名 */
    @Excel(name = "商品名")
    private String commodityName;

    /** 主键 */
    private Long id;

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setPrice(Double price)
    {
        this.price = price;
    }

    public Double getPrice()
    {
        return price;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public void setCommodityName(String commodityName)
    {
        this.commodityName = commodityName;
    }

    public String getCommodityName()
    {
        return commodityName;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public String getIntegral() {
        return integral;
    }

    public void setIntegral(String integral) {
        this.integral = integral;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("status", getStatus())
            .append("price", getPrice())
            .append("commodityName", getCommodityName())
            .append("id", getId())
            .toString();
    }
}
